Checkbox Class

The standard checkbox button control.

Events

Action

GotFocus

LostFocus

MouseDown

MouseUp


Properties

Bold

TextFont

Caption

TextSize

DataField

Underline

DataSource

Value

Italic

 

Methods

None

More information available in parent classes: RectControl:Control:Object

Because this is a RectControl, see the RectControl for other properties and events that are common to all RectControl objects.


Note

If the Caption property contains an ampersand character, it will display only if it is preceded by another ampersand character. For example, if the caption should read "Bread & Butter", enter "Bread && Butter".

This is done to make applications on all operating systems behave consistently. The ampersand is used to denote a keyboard accelerator on Windows.


Example

The following code in the CheckBox's Action event handler checks the value of the CheckBox.

If CheckBox1.value then
 EditField1.text="True"
else
 EditField1.text="False"
end if

See Also

RadioButton control; RectControl class.